﻿using Quantum.Core;
using Quantum.SignalR;
using TestSignalRSubscriberClient;

namespace TestSignalRServer
{
    public class OrderBroadcaster : AbstractBroadcaster
    {
        public override void Publish(string message)
        {
            var obj = JsonFormatter.SerializeObject(new Incoming<Order>()
            {
                Code = 0,
                Messagae = "aaa",
                Payload = new Order {Id = "10001", Total = 20.23}
            });

            base.Publish(obj);
        }
    }
}
